class DateUtils:
    @staticmethod
    def is_leap_year(year: int) -> bool:
        """
        :param year: 输入整数年份
        :return: 返回bool，True 是闰年，False 不是闰年
        """
        if year % 4 == 0 and year % 100 != 0:
            return True
        elif year % 400 == 0:
            return True
        else:
            return False


print(DateUtils.is_leap_year(1900))
